/*
 *    Copyright (c) 2006 ThoughtWorks, Inc.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.thoughtworks.turtlemock.fluapi;

import com.thoughtworks.turtlemock.constraint.*;

public class Should {
    public static Should Not;

    public static Constraint contain(final String text) {
        return new StringContainConstraint(text);
    }

    public static Constraint eq(Object obj) {
        return new EqConstraint(obj);
    }

    public static Constraint beTypeOf(Class type) {
        return new TypeOfConstraint(type);
    }

    public static Constraint eqArray(Object[] expectedArray) {
        return new ArrayEqConstraint(expectedArray);
    }

    public static Constraint beKindOf(Class type) {
        return new KindOfConstraint(type);
    }

    public static Constraint beAny() {
        return new AnyConstraint();
    }

    public static Constraint raise(Class excpetionType) {
        return new ExceptionContraint(excpetionType);
    }

    public static Constraint eq(int obj) {
        return eq(new Integer(obj));
    }

    public static Constraint eq(double v) {
        return eq(new Double(v));
    }

    public static Constraint eq(short obj) {
        return eq(new Short(obj));
    }

    public static Constraint eq(byte obj) {
        return eq(new Byte(obj));
    }

    public static Constraint eq(float obj) {
        return eq(new Float(obj));
    }

    public static Constraint eq(long obj) {
        return eq(new Long(obj));
    }

    public static Constraint eq(boolean obj) {
        return eq(new Boolean(obj));
    }

}
